package com.logic.landseaserver.ws.request;

import com.logic.landseaserver.domain.Urgent;

/**
 * Created by Junny on 2017/6/15.
 */
public class ContractUser {

    private Integer userId;

    private String userName;

    private String userPhone;

    private String userRelation;

    private String gender;

    private String country;

    private String certificatesType;

    private String certificatesId;

    private String address;

    private Integer contractId;

    public Integer getUserId() {
        return userId;
    }

    public void setUserId(Integer userId) {
        this.userId = userId;
    }

    public String getUserName() {
        return userName;
    }

    public void setUserName(String userName) {
        this.userName = userName;
    }

    public String getUserPhone() {
        return userPhone;
    }

    public void setUserPhone(String userPhone) {
        this.userPhone = userPhone;
    }

    public String getUserRelation() {
        return userRelation;
    }

    public void setUserRelation(String userRelation) {
        this.userRelation = userRelation;
    }

    public String getCountry() {
        return country;
    }

    public void setCountry(String country) {
        this.country = country;
    }

    public String getCertificatesType() {
        return certificatesType;
    }

    public void setCertificatesType(String certificatesType) {
        this.certificatesType = certificatesType;
    }

    public String getCertificatesId() {
        return certificatesId;
    }

    public void setCertificatesId(String certificatesId) {
        this.certificatesId = certificatesId;
    }

    public String getAddress() {
        return address;
    }

    public void setAddress(String address) {
        this.address = address;
    }

    public String getGender() {
        return gender;
    }

    public void setGender(String gender) {
        this.gender = gender;
    }


    public Integer getContractId() {
        return contractId;
    }

    public void setContractId(Integer contractId) {
        this.contractId = contractId;
    }

    public static Urgent fromattoUrgent(ContractUser user) {
        Urgent urgent = new Urgent();
        urgent.setId(user.getUserId());
        urgent.setUrgentName(user.getUserName());
        urgent.setUrgentPhone(user.getUserPhone());
        urgent.setContractId(user.getContractId());
        urgent.setUrgentRelation(user.getUserRelation());
        urgent.setCertificatesId(user.getCertificatesId());
        urgent.setCertificatesType(user.getCertificatesType());
        urgent.setCountry(user.getCountry());
        urgent.setAddress(user.getAddress());
        urgent.setGender(user.getGender());
        return urgent;
    }
}
